package com.yi.mall.api;

import com.yi.mall.common.utils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(contextId = "product",value = "mall-goods-service")
public interface ProductFeign {
    /**
     * 按商品ID获取商品详情
     * @param id
     * @return
     */
    @GetMapping("/goods/product/{id}")
    Result getById(@PathVariable("id") Long id);
}
